package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.purchase.HLADBannerManager;

public class HLClassADBannerManager extends HLLibClass {
    public HLClassADBannerManager(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLADBannerManager();
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                HLADBannerManager.GetAD();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLADBannerManager.GetAD());
            }
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                HLADBannerManager.GetADByType(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, HLADBannerManager.GetADByType(args.GetInt(0)));
            }
            break;
        }
        }
    }
}
